import request from "@/utils/request";

// 查询制造执行MES-计划排产列表
export function listProduction(query) {
  return request({
    url: "/mes/production/list",
    method: "get",
    params: query,
  });
}

// 查询制造执行MES-计划排产详细
export function getProduction(id) {
  return request({
    url: "/mes/production/" + id,
    method: "get",
  });
}

// 新增制造执行MES-计划排产
export function addProduction(data) {
  return request({
    url: "/mes/production",
    method: "post",
    data: data,
  });
}

// 修改制造执行MES-计划排产
export function updateProduction(data) {
  return request({
    url: "/mes/production",
    method: "put",
    data: data,
  });
}

// 删除制造执行MES-计划排产
export function delProduction(id) {
  return request({
    url: "/mes/production/" + id,
    method: "delete",
  });
}
